# $Id: PKGBUILD 67613 2012-03-13 14:16:46Z lcarlier $
# Maintainer: Daenyth <Daenyth+Arch at gmail dot com>
# Contributor: Chris Winter <twidds at gmail dot com>

pkgname=fdupes
pkgver=1.40
pkgrel=6
pkgdesc="a program for identifying or deleting duplicate files residing within specified directories"
arch=('i686' 'x86_64')
url="http://code.google.com/p/fdupes/"
license=('MIT')
depends=(glibc)
source=(http://fdupes.googlecode.com/files/$pkgname-$pkgver.tar.gz LICENSE)
md5sums=('11de9ab4466089b6acbb62816b30b189' '47f17890218f832f870bf7a02eaeb017')

build() {
  cd $srcdir/$pkgname-$pkgver

  make 
}
package(){
  cd $srcdir/$pkgname-$pkgver

  install -d ${pkgdir}/usr/{share/man/man1,bin}

  make INSTALLDIR=${pkgdir}/usr/bin MANPAGEDIR=${pkgdir}/usr/share/man install
  install -D -m644 ../LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}
